import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const Score: AppRouteRecordRaw = {
  path: '/score',
  name: 'score',
  component: DEFAULT_LAYOUT,
  meta: {
    locale: 'menu.score',
    requiresAuth: true,
    icon: 'icon-archive',
    order: -94,
    roles: ['*'],
  },
  children: [
    {
      path: 'type',
      name: 'type',
      component: () => import('@/views/score/type/index.vue'),
      meta: {
        locale: 'menu.score.type',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'scoregoods',
      name: 'scoregoods',
      component: () => import('@/views/score/scoregoods/index.vue'),
      meta: {
        locale: 'menu.score.scoregoods',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'scoreorder',
      name: 'scoreorder',
      component: () => import('@/views/score/scoreorder/index.vue'),
      meta: {
        locale: 'menu.score.scoreorder',
        requiresAuth: true,
        roles: ['*'],
      },
    },
    {
      path: 'scoregoodsadd',
      name: 'scoregoodsadd',
      component: () => import('@/views/score/scoregoods/add.vue'),
      meta: {
        locale: 'menu.score.scoregoods.add',
        requiresAuth: true,
        roles: ['*'],
        hideInMenu: true,
      },
    },
  ],
};

export default Score;
